<!--
 * @Description: 空白页
 * @Author: 老五 13521685612@163.com
 * @Date: 2024-11-03 00:41:09
 * @LastEditors: 老五 13521685612@163.com
 * @LastEditTime: 2024-11-17 21:20:41
 * @FilePath: /lieshou-app/pages/index/index.vue
-->

<template>
	<view class="content">
		<zNav :title="title" :showBg="true" :showBack="true"></zNav>
		<view style="margin-top: 100rpx;">
			<uv-empty mode="data" text='空白页' icon="http://cdn.uviewui.com/uview/empty/data.png">
			</uv-empty>
		</view>
	</view>
</template>

<script>
	import zNav from '@/components/z-nav.vue'
	export default {
		components: {
			zNav
		},
		data() {
			return {
				title: "二级页面"
			}
		},
		onLoad() {
			// #ifdef MP-WEIXIN
			this.$utils.showShare('分享免费学习的平台给你~ ', '', '')
			// #endif
		},
		methods: {
			startmessage(e) {
				console.log('startmessage', e)
			},
			completemessage(e) {
				console.log('completemessage', e)
			},
			onLongPress() {
				// 调用小程序API扫描二维码
				uni.scanCode({
					success: (res) => {
						console.log('扫描结果：', res);
						uni.showModal({
							title: '扫描结果',
							content: res.result,
							showCancel: false
						});
					},
					fail: (err) => {
						console.error('扫描失败：', err);
						uni.showToast({
							title: '扫描失败',
							icon: 'none'
						});
					}
				});
			}
		}

	}
</script>

<style lang="scss">
	// page {
	// 	background-image: url('https://1257557568.vod-qcloud.com/d34b21d5vodcq1257557568/7b1391ad1397757896686948962/ERawiiRPGZkA.png');
	// 	background-repeat: no-repeat;
	// 	background-size: 100% 100%;
	// }

	.content {
		width: 100%;
		height: 100%;
	}
</style>